﻿namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Modules
{
    public sealed class Block_Text : ModuleBlock
    {
        public static Block_Text CreateInstance() => new Block_Text
        {
            Id          = ID.Get(),
            Title       = "文本设定分组",
            Description = "用来实现文本设定分组",
            Items = new List<Element_Text>
            {
                new Element_Text { Id = ID.Get(), Title = "血量", Value = "300" },
                new Element_Text { Id = ID.Get(), Title = "攻击", Value = "300" },
                new Element_Text { Id = ID.Get(), Title = "耐力", Value = "300" },
                new Element_Text { Id = ID.Get(), Title = "速度", Value = "300" },
                new Element_Text { Id = ID.Get(), Title = "防御", Value = "300" },
            },
        };
        public required List<Element_Text> Items { get; init; }



        public override ModuleBlock Clone() => new Block_Text
        {
            Id          = Id,
            Title       = Title,
            Description = Description,
            Items       = Items.Select(x => (Element_Text)x.Clone()).ToList(),
        };
    }
}